#include "TahunAkademik.h"

int main () {
	ThnAkademik T1,T2,T3;
	T1 = CreateThnAkademik(2009,2010);
	T2 = CreateThnAkademik(2011,2012);
	T3 = CreateThnAkademik(2008,2012);
	printf("Tahun akademik 1 : %d-%d\n",AWAL(T1), AKHIR(T1));
	printf("Tahun akademik 2 : %d-%d\n",AWAL(T2), AKHIR(T2));
	printf("Tahun akademik 3 : %d-%d\n",AWAL(T3), AKHIR(T3));
	if(IsThnAkademikValid(AWAL(T1),AKHIR(T1))){
		printf("T1 valid\n");
	}
	else printf("T1 tidak valid\n");
	if(IsThnAkademikValid(AWAL(T2),AKHIR(T2))){
		printf("T2 valid\n");
	}
	else printf("T2 tidak valid\n");
	if(IsThnAkademikValid(AWAL(T3),AKHIR(T3))){
		printf("T3 valid\n");
	}
	else printf("T3 tidak valid\n");
	if(IsThnAkademikLT(T1,T2)){
		printf("T1 < T2\n");
	}
	else printf("!(T1 < T2)\n");
	if(IsThnAkademikEq(T1,T2)){
		printf("T1 = T2\n");
	}
	else printf("T1 != T2\n");
	return 0;
}
